import service from "@/request/request.js"

// 获取主页栏宠物的信息列表
export const GetAllFosterMessageService = (username) => {
    return service({
        method: 'GET',
        url: '/netshop/fostermessage/',
        params:{
            username
        }
    })
}

// 新添一份宠物信息数据
export const AddFosterMessageService = (MessageForm,username) => {
    return service({
        method: 'POST',
        url: '/netshop/fostermessage/',
        data: {
            ...MessageForm,
            pet_foster_master:username

        }
    })
}

// 删除一份宠物信息数据
export const deleteNetShopFosterService = (Id) => {
    return service({
        method: 'POST',
        url: '/netshop/fostermessage/' + Id + '/',
    })
}